• Skip to content
  • Skip to primary sidebar
  • Skip to footer

Foliovision

Main navigation

  • Weblog
    • FV Player
    • WordPress
    • Video of the Week
    • Case Studies
    • Business
  • About
    • Testimonials
    • Meet the Team
    • We Support
    • Careers
    • Contact
    • Pricing
  • Products
  • Support
    • FV Player Docs
    • Pro Support
  • Login
  • Basket is empty
Affordable VAST/VPAID for Wordpress has arrived. Serve ads with your videos starting today!

Recent WordPress Update Breaks Custom Upload Folders

5 November 2019 / Martin / 2 Comments

We like to run our WordPress installs in a sub-folder to keep the directory structure clean.

Suddenly our clients were no longer able to upload new images as they were getting an error:

Unable to create directory ../images/2019/11. Is its parent directory writable by the server?

As it turned out, it was caused by the WordPress releases from October 14, 2019:

  • 5.2.4
  • 5.1.3
  • 5.0.7
  • 4.9.12 – this is what we use, as we like to stay free of all the Gutenberg additions
  • 4.8.11
  • and other versions down to 3.7.31

WordPress developers put in a security fix which no longer lets you reference the uploads folder with ../: Filesystem API: Prevent directory travelersals when creating new folders.

The reason is that you could potentially (yes, on a highly insecure server with bad permissions) affect files outside of the web root directory and hack the server.

Fixing that issue is important, but it shouldn’t be done in a way that breaks the media uploads. This security fix just managed to break something that was working fine for 12 years.

Read on:

  • Details about our setup
  • How to fix the issue

Details about our setup

So this is how our typical web root looks like – nice and simple, no wp-... folders and files all over the place:

To do that we simply install WordPress into a site directory, then put in the index.php file which loads site/wp-blog-header.php and configure Settings -> General accordingly:

Then finally we configure the upload paths in Settings -> Media:

However due to that WordPres security update we can no longer use ../ in the “Store uploads in this folder” setting (upload_path wp_option).

How to fix the issue

There are two ways:

1) You can fill in the full uploads path, so you end up with:

  • on cPanel server: /home/your-account/public_html/images
  • on ServerPilot server: //srv/users/your-user/apps/your-website/public/images/

However figuring out that path is not trivial and if you move your website to some other web hosting account you will have to adjust it again.

That’s why we recommending the second option:

2) Installing our BusinessPress plugin instead.

BusinessPress is the plugin which helps us run our clients websites without too much hassle. It makes sure the clients can still manage their full site options, but won’t let them apply plugin or WordPress updates, as we do that with iControlWP.

That way we avoid having to fix the client websites on weekends. Without BusinessPress it’s just too easy to hit the update button and suddenly your WordPress 4.9 is on 5.3 with Gutenberg all over the place.

BusinessPress also contains a number of important tweaks, including:

  • Enable Google style results – Gives you similar layout and keyword highlight.
  • Enable Link Manager – Legacy feature of WordPress, hidden since version 3.5.
  • Enhance wp-admin Dropdowns – Makes long, unwieldy select boxes much more user-friendly, including search functionality.
  • Login redirection – After you log in you will be redirected back to the page where you clicked wp-login.php link
  • Set Featured Images Automatically – First image in the post becomes the featured image on save.
  • …and this important core WordPress bugfix

To fix this upload path issue we first check if your WordPress is running in a sub-folder. If it does, we check if your upload path is relative. If it is relative, we check if it’s going to say in the web root. Only then we let it pass.

There is no need to use any of the advanced features of BusinessPress, just enabling the plugin will activate the fix.

So our fix doesn’t revert the security improvement by WordPress which started this whole issue.

I wish we could catch this issue ahead of time (before November started) as we could have pushed the fix into core WordPress (which is a time consuming task too).

Martin Vicenik

Martin Viceník

Martin graduated as an engineer in Computer Science from Slovak Technical University in Bratislava. He grew up in Liptovský Mikuláš in northern Slovakia next to the beautiful Tatra mountains. He is the developer behind our FV Player.

Categories: WordPress

Related Posts

  1. How to update your WordPress plugins from a local copy on Windows

    How to update your WordPress plugins from a local copy on Windows

  2. How to update your WordPress plugins from a local copy on Mac

    How to update your WordPress plugins from a local copy on Mac

  3. WordPress WYSIWYG update: new Foliopress version

    WordPress WYSIWYG update: new Foliopress version

Reader Interactions

Comments

  1. Matthias P. Würfl 6 November 2019 at 7:19 pm

    Any hint if this will be reverted/fixed in future versions of Wordpress? Now I have hundreds of non-functional Wordpress installations and no clue what to do. Right now my best plan is writing a plugin to filter the uploads directory and activating this on every install (will need a script for that).

    Reply
  2. Martin 7 November 2019 at 9:11 am

    Hello Matthias,

    you can just install our BusinessPress plugin and it will fix it for you. No configuration is needed. So if you have something like ManageWP or iControlWP it’s easy to do.

    Unfortunately I was not able to find the issue on Make WordPress Core, you would have to submit a new bug report: core.trac.wordpress.org/newticket

    Thanks, Martin

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

You can click here to Subscribe without commenting

Primary Sidebar

Categories

  • Business
  • Camera Reviews
  • Case Studies
  • Design
  • FV Player
  • Internet Marketing
  • IT
  • Life
  • SEO
  • Slovak
  • Video of the Week
  • WordPress

Footer

Our Plugins

  • FV WordPress Flowplayer
  • FV Thoughtful Comments
  • FV Simpler SEO
  • FV Antispam
  • FV Gravatar Cache
  • FV Testimonials

Free Tools

  • Pandoc Online
  • Article spinner
  • WordPress Password Finder
  • Delete LinkedIn Account
  • Responsive Design Calculator
Foliovision logo
All materials © 2025 Foliovision s.r.o. | Panská 12 - 81101 Bratislava - Slovakia | info@foliovision.com
  • This Site Uses Cookies
  • Privacy Policy
  • Terms of Service
  • Site Map
  • Contact
  • Tel. ‭+421 2/5292 0086‬

We are using cookies to give you the best experience on our website.

You can find out more about which cookies we are using or switch them off in .

Powered by  GDPR Cookie Compliance
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Necessary Cookies

Strictly Necessary Cookie allow you to log in and download your software or post to forums.

We use the WordPress login cookie and the session cookie.

If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.

Support Cookies

Foliovision.com uses self-hosted Rocket.chat and self-hosted Freescout support desk to provide support for FV Player users. These cookies allow our visitors to chat with us and/or submit support tickets.

We are delighted to recommend self-hosted Rocket.chat and especially Freescout to other privacy-conscious independent publishers who would prefer to self-host support.

Please enable Strictly Necessary Cookies first so that we can save your preferences!

3rd Party Cookies

This website uses Google Analytics and Statcounter to collect anonymous information such as the number of visitors to the site, and the most popular pages.

Keeping this cookie enabled helps us to improve our website.

We reluctantly use Google Analytics as it helps us to test FV Player against popular Google Analytics features. Feel free to turn off these cookies if they make you feel uncomfortable.

Statcounter is an independent Irish stats service which we have been using since the beginning of recorded time, sixteen years ago.

Please enable Strictly Necessary Cookies first so that we can save your preferences!